package com.fyyg.admin.controller.order;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.fyyg.common.result.LayuiResultInfo;

@Controller
@RequestMapping("/order")
public class TBusiOrderController {
	
	
	/**
	 * 订单列表页
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping("/orderList")
	public String orderList(HttpServletRequest request,HttpServletResponse response){
		return  "order/orderlist";
	}
	
	
	/**
	 * 订单列表页
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping("/getOrderList")
	@ResponseBody
	public JSON GetOrderList(HttpServletRequest request,HttpServletResponse response){
		
		String page = request.getParameter("page");
		String limit = request.getParameter("limit");
		
		String starTime = request.getParameter("starTime");
		String endTime = request.getParameter("endTime");
		String pstatus = request.getParameter("pstatus");
		String proTitle = request.getParameter("proTitle");
		
		LayuiResultInfo result = new LayuiResultInfo();
		result.setCode(1);
		result.setMsg("添加失败");
		
		return result.ConversionJSON(result);
	}
}
